using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._3DFeatures
{
    /// <summary>
    /// <para>Simplify 3D Line</para>
    /// <para>Generalizes 3D line features to reduce the overall number of vertices while approximating the original shape in horizontal and vertical directions within a specified tolerance.</para>
    /// <para>概化 3D 线要素以减少顶点总数，同时在指定公差范围内在水平和垂直方向上近似原始形状。</para>
    /// </summary>    
    [DisplayName("Simplify 3D Line")]
    public class Simplify3DLine : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public Simplify3DLine()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Line Features</para>
        /// <para>The line features to be simplified.</para>
        /// <para>要简化的线路功能。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Lines</para>
        /// <para>The simplified output line features.</para>
        /// <para>简化的输出线功能。</para>
        /// </param>
        /// <param name="_tolerance">
        /// <para>Simplification Tolerance</para>
        /// <para>The 3D distance threshold from the input lines that the simplified output must remain within.</para>
        /// <para>与简化输出必须保持在输入线的 3D 距离阈值。</para>
        /// <para>单位： Kilometers | Meters | Decimeters | Centimeters | Millimeters | NauticalMiles | Miles | Yards | Feet | Inches | Unknown </para>
        /// </param>
        public Simplify3DLine(object _in_features, object _out_feature_class, string? _tolerance)
        {
            this._in_features = _in_features;
            this._out_feature_class = _out_feature_class;
            this._tolerance = _tolerance;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "Simplify 3D Line";

        public override string CallName => "3d.Simplify3DLine";

        public override List<string> AcceptEnvironments => ["XYDomain", "XYResolution", "XYTolerance", "ZDomain", "ZResolution", "ZTolerance", "extent", "geographicTransformations", "outputCoordinateSystem", "workspace"];

        public override object[] ParameterInfo => [_in_features, _out_feature_class, _tolerance];

        /// <summary>
        /// <para>Input Line Features</para>
        /// <para>The line features to be simplified.</para>
        /// <para>要简化的线路功能。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Line Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Output Lines</para>
        /// <para>The simplified output line features.</para>
        /// <para>简化的输出线功能。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Lines")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Simplification Tolerance</para>
        /// <para>The 3D distance threshold from the input lines that the simplified output must remain within.</para>
        /// <para>与简化输出必须保持在输入线的 3D 距离阈值。</para>
        /// <para>单位： Kilometers | Meters | Decimeters | Centimeters | Millimeters | NauticalMiles | Miles | Yards | Feet | Inches | Unknown </para>
        /// </summary>
        [DisplayName("Simplification Tolerance")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public string? _tolerance { get; set; }


        public Simplify3DLine SetEnv(object XYDomain = null, object XYResolution = null, object XYTolerance = null, object ZDomain = null, object ZResolution = null, object ZTolerance = null, object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object workspace = null)
        {
            base.SetEnv(XYDomain: XYDomain, XYResolution: XYResolution, XYTolerance: XYTolerance, ZDomain: ZDomain, ZResolution: ZResolution, ZTolerance: ZTolerance, extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, workspace: workspace);
            return this;
        }

    }

}